package zj;

import java.util.Scanner;

/**
 * @author code_yc
 * @version 1.0
 * @date 2020/7/31 13:59
 */
public class Solution4 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        StringBuilder sb = new StringBuilder();
        boolean sign = s.charAt(0) == '-';
        boolean f = false;
        for (char c : s.toCharArray()) {
            if (c == '0' && sb.length() == 0) {
                f = true;
                continue;
            }
            if (c >= '0' && c <= '9') {
                sb.append(c);
            }
        }
        if (sb.length() == 0) {
            if (f) System.out.println("0");
            else System.out.println("");
        } else {
            if (sign) {
                System.out.println("-" + sb.toString());
            } else {
                System.out.println(sb.toString());
            }
        }
    }

}
